#pragma once
#include "UnaryInstruction.h"
#include "Lexer.h"

namespace logo {
	class Repeat : public Instruction
	{
	public:
		Repeat(int iterations);
		void addInstructrion(std::unique_ptr<Instruction> instruction);
		~Repeat();
	private:
		virtual void doExecute(Interpreter &interpreter) const;
		virtual void doDisplay(std::ostream &os) const;
		bool isForward;
		int iterations;
		InstructionList instructions;
	};
}

